home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / CTRLPRNT.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  441b  |  26 lines

  1. .I 16 1
  2.       if (!strcmp((line - 2), "\x0d\x0a") || !strcmp((line - 2), "\x0a\x0d"))
  3. .D 17 1
  4. .I 19 21
  5.  
  6. #ifdef TEST
  7.  
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <ctype.h>
  12.  
  13. void main(void)
  14. {
  15.       char *p, *test = "This is a test";
  16.  
  17.       for (p = strupr(test); *p; ++p)
  18.       {
  19.             if (isalpha(*p))
  20.                   *p = *p - 64;
  21.       }
  22.       ctrl_print(test);
  23. }
  24.  
  25. #endif /* TEST */
  26.